home *** CD-ROM | disk | FTP | other *** search
- head 1.6;
- branch ;
- access ;
- symbols ;
- locks ; strict;
- comment @@;
-
-
- 1.6
- date 90.11.15.23.36.05; author rab; state Exp;
- branches ;
- next 1.5;
-
- 1.5
- date 89.08.31.16.11.01; author rab; state Exp;
- branches ;
- next 1.4;
-
- 1.4
- date 89.01.11.19.34.38; author mlgray; state Exp;
- branches ;
- next 1.3;
-
- 1.3
- date 88.11.10.13.40.45; author ouster; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 88.07.14.08.19.22; author ouster; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 88.03.24.19.51.26; author deboor; state Exp;
- branches ;
- next ;
-
-
- desc
- @System makefile read on each execution of pmake
- @
-
-
- 1.6
- log
- @Add .cc (for C++ file) to list of suffixes.
- @
- text
- @#
- # System Makefile for:
- # Sun3 running Sprite and a Bourne Shell that does error-checking
- # switching.
- #
- # These are the variables used to specify the nature of the system on which
- # pmake is running. These names may later be used in #if expressions for
- # conditional reading of the enclosed portion of the Makefile
- #
- sun= Machine is a sun
- mc68000= so it has a Motorola 68000-family chip.
- sprite= It runs Sprite.
- mc68020= It's a Sun3 so it has a 68020 microprocessor.
-
- .SUFFIXES : .out .a .ln .o .c .cc .F .f .e .r .y .l .s .cl .p .h \
- .c,v .cc,v .y,v .l,v .s,v .h,v
- .INCLUDES : .h
- .LIBS : .a
-
- #
- # Don't assume any dependencies for files without suffixes.
- #
- .NULL : .h
-
- YACC = yacc
- YFLAGS =
- LEX = lex
- LFLAGS =
- CC = cc
- RM = rm
- MV = mv
- #if defined(vax) || defined(sun)
- AS = as
- #else
- AS = as -
- #endif
- PC = pc
- PFLAGS =
- CFLAGS =
- AFLAGS =
- RC = f77
- RFLAGS =
- FC = f77
- EFLAGS =
- FFLAGS =
- LOADLIBES=
- CO = co
- COFLAGS =
- CI = ci
- CIFLAGS =
- AR = ar
- ARFLAGS = r
- LD = ld
-
- .c,v.c .y,v.y .l,v.l .s,v.s .h,v.h :
- $(CO) $(COFLAGS) $(.IMPSRC) $(.TARGET)
-
- .c.o :
- $(CC) $(CFLAGS) -c $(.IMPSRC)
-
- .p.o :
- $(PC) $(PFLAGS) -c $(.IMPSRC)
-
- .cl.o :
- class -c $(.IMPSRC)
-
- .e.o .r.o .F.o .f.o :
- $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $(.IMPSRC)
-
- .s.o :
- $(AS) $(AFLAGS) -o $(.TARGET) $(.IMPSRC)
-
- .y.o :
- $(YACC) $(YFLAGS) $(.IMPSRC)
- $(CC) $(CFLAGS) -c y.tab.c
- $(RM) y.tab.c
- $(MV) y.tab.o $(.TARGET)
-
- .l.o :
- $(LEX) $(LFLAGS) $(.IMPSRC)
- $(CC) $(CFLAGS) -c lex.yy.c
- $(RM) lex.yy.c
- $(MV) lex.yy.o $(.TARGET)
-
- .y.c :
- $(YACC) $(YFLAGS) $(.IMPSRC)
- $(MV) y.tab.c $(.TARGET)
-
- .l.c :
- $(LEX) $(LFLAGS) $(.IMPSRC)
- $(MV) lex.yy.c $(.TARGET)
-
- .s.out .c.out .o.out :
- $(CC) $(CFLAGS) $(.IMPSRC) $(LOADLIBES) -o $(.TARGET)
-
- .f.out .F.out .r.out .e.out :
- $(FC) $(EFLAGS) $(RFLAGS) $(FFLAGS) $(.IMPSRC) \
- $(LOADLIBES) -o $(.TARGET)
- $(RM) -f $(.PREFIX).o
-
- .y.out :
- $(YACC) $(YFLAGS) $(.IMPSRC)
- $(CC) $(CFLAGS) y.tab.c $(LOADLIBES) -ly -o $(.TARGET)
- $(RM) y.tab.c
-
- .l.out :
- $(LEX) $(LFLAGS) $(.IMPSRC)
- $(CC) $(CFLAGS) lex.yy.c $(LOADLIBES) -ll -o $(.TARGET)
- $(RM) lex.yy.c
-
- #
- # System search-path specifications.
- #
- .PATH.h: /sprite/lib/include /sprite/lib/include/$(MACHINE).md
- .PATH.a: /sprite/lib/$(MACHINE).md
- @
-
-
- 1.5
- log
- @Added -D_ASM to .s.o rule.
- @
- text
- @d15 2
- a16 2
- .SUFFIXES : .out .a .ln .o .c .F .f .e .r .y .l .s .cl .p .h \
- .c,v .y,v .l,v .s,v .h,v
- @
-
-
- 1.4
- log
- @changes for adding sun4
- @
- text
- @@
-
-
- 1.3
- log
- @Change paths to correspond to new C library arrangement.
- @
- text
- @d30 2
- d76 2
- a77 2
- rm y.tab.c
- mv y.tab.o $(.TARGET)
- d82 2
- a83 2
- rm lex.yy.c
- mv lex.yy.o $(.TARGET)
- d87 1
- a87 1
- mv y.tab.c $(.TARGET)
- d91 1
- a91 1
- mv lex.yy.c $(.TARGET)
- d99 1
- a99 1
- rm -f $(.PREFIX).o
- d104 1
- a104 1
- rm y.tab.c
- d109 1
- a109 1
- rm lex.yy.c
- @
-
-
- 1.2
- log
- @Set NULL suffix to ".h" so it won't automatically compile anything.
- @
- text
- @d112 2
- a113 2
- .PATH.h: /sprite/lib/include /sprite/att/lib/include
- .PATH.a: /sprite/lib /sprite/att/lib
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d19 5
- a23 1
- .NULL : .out
- @
-